//--------------------------------------------------------------------
//     Author:Howe
//     Date: 2021-04-13 21:43:59 
//     Description:对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
//--------------------------------------------------------------------
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel;

namespace Kylin.Wiki.Model.Entity
{
    ///<summary>
    ///sys_Document_User
    ///</summary>
    [Table("sys_document_user")]
    public class Document_User : BaseEntity
    {

        /// <summary>
        /// ID
        /// </summary>
        [Key]
        [Required]
        [DisplayName("ID")]
        [Column("id")]
        public int ID { get; set; }

        /// <summary>
        /// ProjectID
        /// </summary>
        [Required]
        [DisplayName("ProjectID")]
        [Column("document_id")]
        public int DocumentID { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        [Required]
        [DisplayName("用户ID")]
        [Column("user_id")]
        public int UserID { get; set; }

        /// <summary>
        /// 权限 只读权限 1 读写权限
        /// </summary>
        [Required]
        [DisplayName("权限 0 只读权限 1 读写权限")]
        [Column("permission")]
        public int Permission { get; set; }
 

    }
}
